#include "knl_threadRunnable.h"

namespace knl
{
	knl_threadRunnable::knl_threadRunnable(void)
	{
		_isloop = false;
	}


	knl_threadRunnable::~knl_threadRunnable(void)
	{
	}

	void knl_threadRunnable::setLoop( bool loop )
	{
		_isloop = loop;
	}

	void knl_threadRunnable::Job()
	{
		do 
		{
			run();
		} while (_isloop);
	}

}